package com.scfinance.SPD.encrypt.util;

import com.scfinance.SPD.encrypt.util.BuildConfig;
import com.scfinance.SPD.encrypt.util.Constant;

public class ConstantUtil {

	public static final String encryptKey = "123456";
	public static final int ENCRYPTSTATUS = BuildConfig.ENCRYPTSTATUS;
	// 定义3DES加密算法
	public static String THREEDES = "yu";

	// 加密秘钥
	// 测试的软加密
	public static String rsaPublickey = "155333836407721742437013964781240813547648568277369856731702424544611477233723824062420264408239311308072589928283658882295219953371806319333882040818949674481224316055960548594185861343375871668788225708078406850675377231168363720279630308760697461486942310771070811887375953146186569824772570916425025719011";// 公钥
	public static String rsaPrivatekey = "6922124323380142352858781819900962724975301518505080511753522789374989986628296129889384077902336989115869396463758101479168656787734460452540430792270689452115726586060974350225600302433556364238917228002855818585096156674486066096177316214873367757117636350379232379932337812016370654635398836592103447536119008338685794060853874278122389321594048244632662647854584106566764440275119811726178483433731059379137391184488286938145498098136151022287572490285509396073471434801358944300785605851032308710553237957123680702988677330839529669347014144475268304853827163785376913223689497455014914867507530761192761002091";// 私钥
	public static String rsaModule = "9371004933518287139852915334157124242508586369659033482291061022751607180274698607338105674795198009594312719547803916745800103033600540244841444220316063424146819553125557227295720450973923158286595378082433035855916404812152374929367875939362651543167871547687901348310174726328815306918202636700513288322241449912655727988526478959448560973166201371573323173412595412003697377360365327809645019841319350791294785701627763941268632091598630631963020534549730002970310332172601156468634474105327837444330255152576140902901907112632706501713973933755404350854905959579070605702440397898267438743411508661320100260851";// �?

	// //UAT加密机的信息
//	public static String uatPublickey = "65537";// 公钥
//	public static String uatModule = "E3932E8A2701FB1B2B69A6BA528B038ED051CCAB229B4DDD96D53B03D458283174D503E6B0B1067B52D4CEBDC590F85DA13891186F0BEE4DFC85AD4DA55E2A4137B9F2BC0228AAB29FAD61E658D71E24A7D74F44C0D1FB2E740FCCCF9C758F794B5BBBCF8210A268BE2815830A8CADA8DAB59DD281AA95B962C8C860C429B435";// �?
//	public static String uatPublickey = "3";// 公钥
	public static String uatModule = "E7143D836D68C4ED366545AFEA4B1DA6F3303CF2272E8898912D09F59FFFA3EF720873D44B6BF69A2D6469D8F326516BE61BDB376F4D4B79046C3BD3D2F35F4453168C5E956EA9CC57E9A9A4293D5C6B9F1DFE8D92BA8F5D7FD6B8A542A1684B7EDFF7E84B433D4AFB69452BB862260C7C03BDD31BB0E8A3BA9A75ADAA02CD450B542991EDF524042DCC07EE1708CBCCBF3D48C455586132099AE9EC568E792A33177E1BCABD13CB704F92E1E056A0A7";
	public static String uatPublickey = "3";// 公钥
//	public static String uatModule = "C1983B0BFF11F9BBED11D21572F62549B676E1088BED0822659EFA8CF55208D63A42FC9CB9824DDDD77422AB384CBBCFA2C8A5769AE255E321C99FABB3C7C1183E59F2B454615F0908CCA2959B7C53BDEC4B8CE58448715A380834C1E630988C9753ABC8BF86F7960DCFC5D758FDBC179CAF24A7C6291C3F759989DB8F99CD96F86154D639136E04942765DF35DE2529BD47BB88ED643D5A74C163C3E203A6739BE6A9E2873764B2A5D9046791C6F611";

	// Product加密机的信息
//	public static String patPublickey = "65537";// 公钥
//	public static String patModule = "A62DFEE63791671E248A3307B5309345C5BE02C4EAF81F7FFD4FCD9D194A25E23D6D2FA8E1BAE6DAF54A7C93E116E8FAC7B8AFD6DFE9CCF5839D3FF7082C3C1A51E55C4C0C5685DF08C7E2E1D33CB253E0B84DE0C376D11871691DA98A80708D3AC45C456A4B9788D43B7F317219371C591FAC2CE4BF9FE32101FBF188971141";// �?
	public static String patPublickey = "3";// 公钥
	public static String patModule = "C1983B0BFF11F9BBED11D21572F62549B676E1088BED0822659EFA8CF55208D63A42FC9CB9824DDDD77422AB384CBBCFA2C8A5769AE255E321C99FABB3C7C1183E59F2B454615F0908CCA2959B7C53BDEC4B8CE58448715A380834C1E630988C9753ABC8BF86F7960DCFC5D758FDBC179CAF24A7C6291C3F759989DB8F99CD96F86154D639136E04942765DF35DE2529BD47BB88ED643D5A74C163C3E203A6739BE6A9E2873764B2A5D9046791C6F611";

	public static String getThrees() {
		return THREEDES + Constant.getThress();
	}

	public static String getVersionString(){
		switch (ENCRYPTSTATUS){
			case Constant.UAT:
				return "uat";
			case Constant.PAT:
				return "pat";
			case Constant.ZH:
				return "zh";
		}
		return "";
	}
}
